Skip to main content
Version: 2.0

Location Message

Location request messages contain body text and a Send location button that users can tap. Tapping the button displays a location sharing screen which the user can then use to share their location.

To send a location request message, first assemble an interactive object with text you wish to display in the message:

Alt text


ObjectDescription
typeSet to location_request_message.
body.typeSet to text.
body.textSet to the text you want to display above the Send location button.
action.nameSet to send_location.


Payload

{
"recipient_type": "individual",
"to": "91xxxxxxxxxx",
"type": "interactive",
"interactive": {
"type": "location_request_message",
"body": {
"type": "text",
"text": "Let's start with yor 📍 pickup. You can either 𝗺𝗮𝗻𝘂𝗮𝗹𝗹𝘆 𝗲𝗻𝘁𝗲𝗿 𝗮𝗻 𝗮𝗱𝗱𝗿𝗲𝘀𝘀 or 𝘀𝗵𝗮𝗿𝗲 𝘆𝗼𝘂𝗿 𝗹𝗼𝗰𝗮𝘁𝗶𝗼𝗻."
},
"action": {
"name": "send_location"
}
}
}